<!-- left side start-->
<div class="left-side sticky-left-side">

    <!--logo and iconic logo start-->
    <div class="logo">
        <a href="index.html"><h1 style="font-size: 18px; font-weight: 400; color: #65CEA7;">图量科技OMS系统</h1></a>
    </div>

    <div class="logo-icon text-center">
        <a href="index.html"><h1 style="font-size: 18px;">图量科技多平台系统</h1></a>
    </div>
    <!--logo and iconic logo end-->

    <div class="left-side-inner">
        <!-- visible to small devices only -->
        <div class="visible-xs hidden-sm hidden-md hidden-lg">
            <div class="media logged-user">
                <img alt="" src="/public/images/photos/user-avatar.png" class="media-object">
                <div class="media-body">
                    <h4><a href="#">John Doe</a></h4>
                    <span>"Hello There..."</span>
                </div>
            </div>

            <h5 class="left-nav-title">Account Information</h5>
            <ul class="nav nav-pills nav-stacked custom-nav">
                <li><a href="#"><i class="fa fa-user"></i> <span>Profile</span></a></li>
                <li><a href="#"><i class="fa fa-cog"></i> <span>Settings</span></a></li>
                <li><a href="#"><i class="fa fa-sign-out"></i> <span>Sign Out</span></a></li>
            </ul>
        </div>

        <?php $user_permission = $this->user->getPermission();?>
        <?php $is_admin = $this->user->isAdmin();?>
        <!--sidebar nav start-->
        <ul class="nav nav-pills nav-stacked custom-nav">
            <?php foreach ($this->config->item('columns') as $column) :?>
                <?php if(in_array($column['id'], $user_permission) || $is_admin): ?>
                <li class="<?php echo $column['item'] ? 'menu-list' . ($this->router->class == $column['nav_c'] ? ' nav-active' : '') : '' . ($this->router->class == $column['nav_c'] ? ' active' : '');?>">
                    <a href="<?php echo !$column['item'] ? base_url(array($column['nav_c'])) : '';?>"><i class="fa <?php echo $column['icon'];?>"></i> <span><?php echo $column['nav_name'];?></span></a>
                    <?php if ($column['item']) :?>
                    <ul class="sub-menu-list">
                        <?php foreach ($column['item'] as $item) :?>
                        <?php if(in_array($item['id'], $user_permission) || $is_admin): ?>
                        <li class="<?php echo $this->router->class == $column['nav_c'] && $this->router->method == $item['nav_f'] ? '  active' : '';?>"><a href="<?php echo base_url(array($column['nav_c'],$item['nav_f'])); ?>"> <?php echo $item['nav_name'];?></a></li>
                        <?php endif;?>
                        <?php endforeach;?>
                    </ul>
                    <?php endif;?>
                </li>
                <?php endif; ?>

            <?php endforeach;?>
        </ul>
        <!--sidebar nav end-->

    </div>
</div>
<!-- left side end-->
